//
// Created by WangPeng on 24-11-28.
//

#ifndef CAMERA_H
#define CAMERA_H

#include <QMainWindow>
#include <QTimer>
#include <memory>


QT_BEGIN_NAMESPACE
namespace Ui { class camera; }
QT_END_NAMESPACE

class CV4L2Video;
class camera : public QMainWindow
{
Q_OBJECT

public:
    explicit camera(QWidget *parent = nullptr);
    ~camera() override;
    //定时器事件
    void timerEvent(QTimerEvent *e) override;
private:
    Ui::camera *ui;
    std::unique_ptr<CV4L2Video> ptr_video;
};


#endif //CAMERA_H
